package com.cedifie.lendapp.utils.event.room;

import androidx.room.Entity;
import androidx.room.PrimaryKey;

@Entity(tableName = "ced_events")
public class CedEvent {
    @PrimaryKey(autoGenerate = true)
    private long id;
    private final String type;// 事件类型
    private final String remark;// 备注信息
    private final long timestamp;// 时间戳
    private boolean isUpload;// 是否已上报

    public CedEvent(String type, String remark, long timestamp, boolean isUpload) {
        this.type = type;
        this.remark = remark;
        this.timestamp = timestamp;
        this.isUpload = isUpload;
    }

    // Getters and Setters
    public long getId() { return id; }
    public void setId(long id) { this.id = id; }
    public String getType() { return type; }
    public String getRemark() { return remark; }
    public long getTimestamp() { return timestamp; }
    public boolean isUpload() { return isUpload; }
    public void setUpload(boolean isUpload) { this.isUpload = isUpload; }
}
